//package com.nbjtjc.safe.api.cost;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.CrossOrigin;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.nbjtjc.safe.annotation.SysLog;
//import com.nbjtjc.safe.bean.Result;
//import com.nbjtjc.safe.model.cost.CostBudgetItem2;
//import com.nbjtjc.safe.service.cost.CostBudgetItem2Service;
//
//@RestController
//@CrossOrigin("*")
//@RequestMapping("/costBudgetItem2")
//public class CostBudgetItem2Controller {
//	@Autowired
//	CostBudgetItem2Service costBudgetItem2Service;
//	
//	  @RequestMapping(value = "/add",method = {RequestMethod.POST})
//	  @SysLog("添加安全投入预算计划项目")
//	    public Result add(@RequestBody CostBudgetItem2 costBudgetItem2){
//	        Result result=new Result();
//	        try {
//	            result=costBudgetItem2Service.add(costBudgetItem2);
//	        } catch (Exception e) {
//	            e.printStackTrace();
//	            result.setFalse(e.getMessage());
//	        }
//	        return result;
//	    }
//	  
//	  @RequestMapping(value = "/update",method = {RequestMethod.POST})
//	  @SysLog("更新安全投入预算计划项目")
//	    public Result update(@RequestBody CostBudgetItem2 costBudgetItem2){
//	        Result result=new Result();
//	        try {
//	            result=costBudgetItem2Service.update(costBudgetItem2);
//	        } catch (Exception e) {
//	            e.printStackTrace();
//	            result.setFalse(e.getMessage());
//	        }
//	        return result;
//	    }
//	  
//	  @RequestMapping(value = "/show",method = {RequestMethod.POST})
//	    public Result show(@RequestBody CostBudgetItem2 costBudgetItem2){
//	        Result result=new Result();
//	        try {
//	            result=costBudgetItem2Service.show(costBudgetItem2.getId());
//	        } catch (Exception e) {
//	            e.printStackTrace();
//	            result.setFalse(e.getMessage());
//	        }
//	        return result;
//	    }
//	  
//	  @RequestMapping(value = "/show",method = {RequestMethod.POST})
//	  @SysLog("删除安全投入预算计划项目")
//	    public Result delete(@RequestBody CostBudgetItem2 costBudgetItem2){
//	        Result result=new Result();
//	        try {
//	            result=costBudgetItem2Service.delete(costBudgetItem2);
//	        } catch (Exception e) {
//	            e.printStackTrace();
//	            result.setFalse(e.getMessage());
//	        }
//	        return result;
//	    }
//}
